﻿@using NewRen.Models;
@using NewRen.Models.ViewModel
@{
    vCurrentUser current = ViewBag.CurrentUser as vCurrentUser;
    Business user = current.ToBusiness();
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="keywords" content="@ViewBag.Keywords" />
    <meta name="description" content="@ViewBag.Description" />
    <title>@ViewBag.Title—@ViewBag.BaseTitle</title>
    <link href="~/Styles/jquery.datetimepicker.css" rel="stylesheet" />
    <link href="~/Styles/newren.base.css" rel="stylesheet" />
    <link href="~/Styles/Layout_Show.css" rel="stylesheet" />
    <link href="~/Styles/newren.business.css" rel="stylesheet" />
    <link href="~/Content/PagedList.css" rel="stylesheet" />
    <link rel="shortcut icon" href="~/Images/favicon.ico" /> 
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/jquery.md5.js"></script>
    <script src="~/Scripts/jquery.datetimepicker.js"></script>
    <script src="~/Scripts/newren.base.js"></script>
    <script src="~/Scripts/newren.js"></script>
    <script src="~/Scripts/newren.business.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
</head>
<body>
    <input type="hidden" value="@ViewBag.ReturnUrl" id="returnUrl">
    <div class="nav">
        <div class="nav-container">
            <div class="nav-left">
                <a href="/Home/Index" class="nav">首页</a>
                <a href="/NewRen/Index" class="nav" id="nav_newren">找牛人</a>
                <a href="/UserGroup/Index" class="nav" id="nav_usergroup">找牛棚</a>
                <a href="/Anecdote/Index" class="nav" id="nav_anecdote">牛人轶事</a>
                <a href="/Business/Index" class="nav" id="nav_business">商家</a>
                <a href="/Shop/Index" class="nav" id="nav_shop">积分商城</a>
                <a href="/Bbs/Index" class="nav" id="nav_bbs">论坛</a>
                <a href="/News/Index" class="nav" id="nav_news">新闻</a>
            </div>
            <div class="nav-right">
                <a class="item" href="@ViewBag.CurrentUser.Show" target="_self"><span class=" user_name_show">@ViewBag.CurrentUser.CurrentName</span></a>
                <a class="item last" href="/User/Logout?sid=@ViewBag.SID" target="_self">注销</a>
                <a class="item" href="/"><span><i class="icon-feed icon-home"></i>返回首页</span></a>
                <a class="item"><span id="collect-me"><i class="icon-feed icon-collect"></i>加入收藏</span></a>
                <a class="item" href="/Shared/Contact"><span><i class="icon-feed icon-contact"></i>联系我们</span></a>
                <script>
                    $("#collect-me").click(function () {
                        var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd' : 'CTRL';
                        if (document.all) {
                            window.external.addFavorite('http://www.51newren.com/', '牛人网');
                        } else if (window.sidebar) {
                            window.sidebar.addPanel('牛人网', 'http://www.51newren.com/', "");
                        } else {
                            alert('您可以尝试通过快捷键' + ctrl + ' + D 加入到收藏夹~');
                        }
                        return false;
                    });
                </script>
            </div>
        </div>
        <div class="clr"></div>
    </div>
    <div id="pager">
        <div class="w-1000 mar-t30 cf ucenter-block">
            @RenderBody()
        </div>
    </div>
    <div class="footer-container top30">
        <div class="footer top-line top30">
            <p>
                <span><a href="/">首页</a> </span>|
                <span><a href="/About.html">关于我们</a> </span>|
                <span><a href="/Join.html">加入我们</a> </span>|
                <span><a href="/Contact.html">联系我们</a> </span>|
                <span><a href="/Serviceterm.html">服务条款</a> </span>|
                <span><a href="/Bbs/Index">论坛</a></span>
            </p>
        </div>
        <div class="wrapper">
            <div class="copyright">
                <p class="small">
                    Copyright © 2015 湖北牛人网络工程有限公司 All rights reserved. 鄂ICP备15014961号-1&nbsp;&nbsp;
                    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cspan id='cnzz_stat_icon_1256053577'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/stat.php%3Fid%3D1256053577%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
                </p>
            </div>
        </div>
    </div>
</body>
</html>